package restlet.remote;

import org.restlet.Component;
import org.restlet.Server;
import org.restlet.data.Protocol;

public class RESTletAppConfigurator {
	int port = 8090;
	Protocol protocol = Protocol.HTTP;
	String path = "/admin";
	private RESTletAdminApplication application;
	Server server;

	public void setup(Component component) {

		// Add a new HTTP server listening on port 8182.
		server = component.getServers().add(protocol, port);

		application = new RESTletAdminApplication(component.getContext());
		// Attach the sample application.
		component.getDefaultHost().attach(path, application);

	}

}
